package com.tianci.appstore.ui.data;

import com.skyworth.webSDK.webservice.tcappstore.AppStoreUpdateBean;

import java.util.List;

/**
 * 列表页中的app块data
 * 使用此data的列表有：1.我的应用列表、2.卸载应用列表、3.清理缓存列表、4.应用转移列表
 * 其中1的supportMultiSel为false，而234的为true
 **/
public class SkyListAppData extends SkyAppBaseData {
    protected ListType type;
    protected String showInfo;    // 需要展示在title下面的信息，如下载总量/版本/应用大小等
    protected String pkgName;
    protected String versionName;
    protected String cornerIconUrl;   // 角标url
    protected String uri;

    public List<String> getControll() {
        return controll;
    }

    public void setControll(List<String> controll) {
        this.controll = controll;
    }

    protected long size;
    protected long installTime;
    private String mainActivity;
    private List<String> controll = null;
    public AppStoreUpdateBean updateBean = null;
//    protected boolean supportMultiSel = false;   // 是否需要支持列表多选

    public enum ListType {
        CGY_APP_LIST,       // 分类列表
        LOCAL_APP_LIST,     // 我的应用列表
        UPGRADE_APP_LIST,   // 更新管理列表
        DOWNLOAD_LIST,      // 下载列表
        UNINSTALL_APP_LIST, // 卸载列表
        CLEAR_CACHE_LIST,   // 清理缓存列表
        MOVE_APP_LIST,      // 应用转移列表
        SEARCH_LIST,        // 搜索列表
        SEARCH_HOT_LIST,    // 搜索推荐列表
        APK_SCAN_LIST,      // 搜索本地apk列表
        LAUNCH_ON_BOOT_LIST, // 开机启动设置列表
        SELECTED_LAUNCH_LIST
    }

    ;

    public SkyListAppData(ListType type) {
        this.type = type;
    }

    public SkyListAppData(ListType type, String id, String title, String iconUrl, String pkgName) {
        // TODO Auto-generated constructor stub
        super(id, title, iconUrl);
        this.type = type;
        this.pkgName = pkgName;
    }

    public SkyListAppData(String id, String title, String iconUrl, String showInfo, String pkgName)//String downloadCount, String updateDate)
    {
        // TODO Auto-generated constructor stub
        super(id, title, iconUrl);
        this.showInfo = showInfo;
        this.pkgName = pkgName;
    }

//    public String getDownloadCount()
//    {
//        return downloadCount;
//    }
//
//    public void setDownloadCount(String downloadCount)
//    {
//        this.downloadCount = downloadCount;
//    }
//
//    public String getUpdateDate()
//    {
//        return updateDate;
//    }
//
//    public void setUpdateDate(String updateDate)
//    {
//        this.updateDate = updateDate;
//    }

    public String getPkgName() {
        return pkgName;
    }

    public String getShowInfo() {
        return showInfo;
    }

    public void setShowInfo(String showInfo) {
        this.showInfo = showInfo;
    }

    public void setPkgName(String pkgName) {
        this.pkgName = pkgName;
    }

//    public boolean isSupportMultiSel()
//    {
//        return supportMultiSel;
//    }
//
//    public void setSupportMultiSel(boolean needMultiSel)
//    {
//        this.supportMultiSel = needMultiSel;
//    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String version) {
        this.versionName = version;
    }

    public String getCornerIconUrl() {
        return cornerIconUrl;
    }

    public void setCornerIconUrl(String cornerIconUrl) {
        this.cornerIconUrl = cornerIconUrl;
    }

    public ListType getType() {
        return type;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public long getInstallTime() {
        return installTime;
    }

    public void setInstallTime(long installTime) {
        this.installTime = installTime;
    }

    public void setMainActivity(String mainActivity) {
        this.mainActivity = mainActivity;
    }

    public String getMainActivity() {
        return mainActivity;
    }

    public void setUri(String uri){
        this.uri = uri;
    }

    public String getUri(){
        return uri;
    }

}
